class Car:

    def drive(self,speed):
        self.wheels = 4;
        print(f"driving~~~~~~~~{speed}~~~~~~~")

    @classmethod
    def stop(cls):
        print("stop+++++++++++++")

    # 静态方法
    @staticmethod
    def test():
        print("test=================")

car1 = Car()
car1.drive(100)
print(car1.wheels)

car1.color = "red"
print(car1.color)

class Car:

    def drive(self,speed):
        self.wheels = 4;
        print(f"driving~~~~~~~~{speed}~~~~~~~")

    @classmethod
    def stop(cls):
        print("stop+++++++++++++")

    # 静态方法
    @staticmethod
    def test():
        print("test=================")

car1 = Car()
car1.drive(100)
print(car1.whclass Car:

    def drive(self,speed):
        self.wheels = 4;
        print(f"driving~~~~~~~~{speed}~~~~~~~")

    @classmethod
    def stop(cls):
        print("stop+++++++++++++")

    # 静态方法
    @staticmethod
    def test():
        print("test=================")

car1 = Car()
car1.drive(100)
print(car1.wheels)

car1.color = "red"
print(car1.color)


class Cat:
    __name = 'Tom'

    def print(self):
        print('私有方法')
        print(self.__name)


cat =Cat()
cat.print()
print(cat._Cat__name)